package model;

/**
 * The StructureChangedEvent is a class that tells that the structure has been changed.
 * @author hfi411pi
 *
 */
public class StructureChangedEvent implements Event {

	@Override
	public void accept(final EventVisitor eventVisitor) {
		eventVisitor.handleStuctureChangedEvent(this);
	}

	/**
	 * Factory method for creating StructureChangedEvents.
	 * @return the created StructureChangedEvent.
	 */
	public static StructureChangedEvent create() {
		return new StructureChangedEvent();
	}
	
	/**
	 * Default constructor of StructureChangedEvent.
	 */
	private StructureChangedEvent() {
	}
}
